<?php
/**
 * show functions
 *
 * @url         $URL: http://mythepisode.googlecode.com/svn/trunk/includes/show_utils.php $
 * @date        $Date: 2012-06-13 15:54:32 +0000 (Wed, 13 Jun 2012) $
 * @version     $Revision: 438 $
 * @author      $Author: chadopp $
 * @license     GPL
 *
/**/

// Sorting Functions
    function cmp_shows($a, $b) {
        static $excludes = '/^(?i)(an?|the)\s+/'; // Add excluded words here
        return strcasecmp(
            preg_replace($excludes, '', $a),
            preg_replace($excludes, '', $b)
        );
    }

